package com.gss.module.generator.entity;

import lombok.Data;

import java.util.List;

/**
 * @author DYang
 * @date 2023/5/25
 * 实体类
 */
@Data
public class BaseEntity {

    /**
     * 作者名称
     */
    private String author;
    /**
     * 类名称
     */
    private String className;
    /**
     * 作用域
     */
    private String scope;

    /**
     * 实体类名称
     */
    private String entityName;
    /**
     * 实体类描述
     */
    private String entityDesc;

    /**
     * 映射数据库表名
     */
    private String tableName;

    /**
     * 字段
     */
    private List<FieldEntity> fieldList;

    public BaseEntity author(String author){
        this.author = author;
        return this;
    }

    public BaseEntity className(String className){
        this.className = className;
        return this;
    }

    public BaseEntity scope(String scope){
        this.scope = scope;
        return this;
    }

    public BaseEntity entityName(String entityName){
        this.entityName = entityName;
        return this;
    }

    public BaseEntity entityDesc(String entityDesc){
        this.entityDesc = entityDesc;
        return this;
    }

    public BaseEntity tableName(String tableName){
        this.tableName = tableName;
        return this;
    }

    public BaseEntity fieldList(List<FieldEntity> fieldList){
        this.fieldList = fieldList;
        return this;
    }

}
